package cn.duhengkui.national.valuelist.example.dao;

import cn.duhengkui.national.valuelist.annotation.Query;
import cn.duhengkui.national.valuelist.core.data.StandardDao;

import java.util.List;

import org.springframework.stereotype.Repository;
import cn.duhengkui.national.valuelist.example.entity.Bookinfo;
import cn.duhengkui.national.valuelist.example.vo.MyBook;

@Repository("cn.duhengkui.national.valuelist.example.dao.BookinfoDao")
public interface BookinfoDao extends StandardDao<Bookinfo>{

	@Query(sql="select book_name, round(book_price) as price from bookinfo ",type=Query.Type.LIST,returnQueryObj=MyBook.class)
	public List<MyBook> getMyList();
}